package com.idanchuang.component.logback.config;

import java.util.ArrayList;
import java.util.List;

/**
 * @author yjy
 * @date 2020/03/02 13:51
 **/
public class LogbackSentryConfig {

    /** 是否接入 sentry */
    private boolean enabled = false;
    /** dsn */
    private String dsn;
    /** 白名单字符, 如果日志中包含白名单字符, 则忽略 */
    private List<String> whiteList = new ArrayList<>();

    public List<String> getWhiteList() {
        return whiteList;
    }

    public void setWhiteList(List<String> whiteList) {
        this.whiteList = whiteList;
    }

    public String getDsn() {
        return dsn;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public void setDsn(String dsn) {
        this.dsn = dsn;
    }

    @Override
    public String toString() {
        return "LogbackSentryConfig{" +
                "enabled=" + enabled +
                ", dsn='" + dsn + '\'' +
                ", whiteList=" + whiteList +
                '}';
    }
}
